package cn.janyd.service;

import cn.janyd.dao.UserDao;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @author a3139
 * @since 2020-01-07 9:37
 */
@Service
public class UserService implements InitializingBean {

	@Autowired
	private UserDao userDao;

	public UserService() {
		System.out.println("构造方法");
	}

	@PostConstruct
	public void init() {
		System.out.println("@PostConstruct 方法");
	}

	@Override
	public void afterPropertiesSet() {
		System.out.println("InitializingBean 接口初始方法");
	}
}
